Skip to content

Added exposed API key custom metric #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

vsdaan
Copy link

@vsdaan vsdaan commented Jun 13, 2025

Added custom metric to check for exposed API keys in both inline scripts and external sources.


Test websites:

@max-ostapenko max-ostapenko requested a review from Copilot June 13, 2025 10:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Copy link

https://almanac.httparchive.org/en/2022/

WPT result details

Changed custom metrics values:

{
  "_exposed_keys": []
}
https://example.com

WPT result details

Changed custom metrics values:

{
  "_exposed_keys": []
}
https://daanvs.be/apitest

WPT result details

Changed custom metrics values:

{
  "_exposed_keys": [
    "gemini",
    "openai"
  ]
}

@max-ostapenko max-ostapenko marked this pull request as ready for review June 23, 2025 21:06
@max-ostapenko
Copy link
Contributor

@vsdaan let me know when you're ready with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants